class Animal implements Cloneable{
    private String name;

    @Override
    protected Object clone() throws CloneNotSupportedException {
        return super.clone();
    }
}

public class Demo1 {

    public static void main(String[] args) throws CloneNotSupportedException {
        Animal a = new Animal();
        Animal a1 = (Animal) a.clone();
        System.out.println(a == a1);
    }
}
